package logger2.printer;

import logger2.LogRecord;
import logger2.formatter.LogFormatter;

public class ConsolePrinter implements Printer {
	private LogFormatter formatter;
	
	public ConsolePrinter(LogFormatter formatter) {
		super();
		this.formatter = formatter;
	}

	@Override
	public void notify(LogRecord record) {
		System.out.println(formatter.format(record));
	}

}
